package com.kb.shop.service.impl;

import com.kb.order.pojo.ShopInfo;
import com.kb.shop.dao.ShopInformationDao;
import com.kb.shop.service.IShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ShopServiceImpl implements IShopInfoService {
    @Resource
    private ShopInformationDao shopInformationDao;

    @Override
    public ShopInfo selectOne(Integer shopId) {
        return shopInformationDao.selectOne(shopId);
    }

    @Override
    public int insert(ShopInfo pojo) {
        return shopInformationDao.insert(pojo);
    }

    @Override
    public int insertList(List<ShopInfo> pojo) {
        return shopInformationDao.insertList(pojo);
    }

    @Override
    public int update(ShopInfo pojo) {
        return shopInformationDao.update(pojo);
    }

    @Override
    public List<ShopInfo> select(ShopInfo pojo) {
        return shopInformationDao.select(pojo);
    }
}
